<template>
  <scroller height="30vh">
    <div class="version-selector">
      <div class="version-item" v-for="(v, i) in versions" :key="i" @click="changeVersion(v)">
        {{ v.name }}
      </div>
    </div>
  </scroller>
</template>

<script>
export default {
  props: ["versions"],
  methods: {
    changeVersion(v) {
      this.$emit("change-version", v);
    },
  },
};
</script>

<style lang="stylus">

.version-selector
  .version-item
    height 2.2vh
    line-height 2.2vh
    padding 5px 1vw
    border-bottom 1px solid #eee

    &:hover
      background-color #eee
</style>